<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Watson\Validating\ValidatingTrait;
class WechatMessage extends Model
{
    use Notifiable;
//    use ValidatingTrait;
    protected $table = 'wechat_messages';
    protected $fillable = [
        "w_id", "type","user_open_id","content","MsgId","MediaId","CreateTime","PicUrl","is_return"
    ];
    public function Users()
    {
        return $this->hasOne('App\Models\WechatUser','id','user_open_id');
    }
}
